package com.wu.framework.oauth.domain.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "oauth_client_details")
public class OauthClientDetails {

  @Id
  private String clientId;

  private String resourceIds;

  private String clientSecret;

  @ApiModelProperty(value = "scope 资源类型",example = "web")
  private String scope="web";

  @ApiModelProperty(value = "authorizedGrantTypes 授权类型 ",example = "refresh_token,password,authorization_code,client_credentials")
  private String authorizedGrantTypes="refresh_token,password,authorization_code,client_credentials";

  @ApiModelProperty(value = "跳转路径",example = "")
  private String webServerRedirectUri;

  @ApiModelProperty(value = "authorities",example = "")
  private String authorities;

  @ApiModelProperty(value = "accessTokenValidity",example = "3600")
  private long accessTokenValidity=3600;

  @ApiModelProperty(value = "refreshTokenValidity",example = "7200")
  private long refreshTokenValidity=7200;

  @ApiModelProperty(value = "附加信息",example = "{\"key\":\"value\"}")
  private String additionalInformation="{}";

  @ApiModelProperty(value = "autoapprove",example = "web")
  private String autoapprove;


}
